package com.rest.demo.nio.execrise;

/**
 * @author Administrator
 * @decription
 * @Date 2018-02-12 10:20
 */
public class StringDemo {
    public static void main(String[] args) {
        String str1 = "hello world";
        String str2 = new String("hello world");
        String str3 = "hello " + new String("world");

        System.out.println(str1 == str2);
        System.out.println(str1 == str3);
        System.out.println(str2 == str3);

    }
}
